/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import controller.ReportDetail;
import entities.Report;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author QUY-THI
 */
@ManagedBean
@ViewScoped
public class ReportDetailBean {

    private int reportid;
    private Report report;

    public int getReportid() {
        return reportid;
    }

    public void setReportid(int reportid) {
        this.reportid = reportid;
    }

    public Report getReport() {
        ReportDetail rd=new ReportDetail();
        return rd.reportDetail(reportid);
    }

    public void setReport(Report report) {
        this.report = report;
    }
    /**
     * Creates a new instance of ReportDetailBean
     */
    public ReportDetailBean() {
    }
}
